package router

import (
	"gin-rkboot-sw/internal/controller"
	"github.com/gin-gonic/gin"
)

var (
	Greeter = rGreeter{}
)

type rGreeter struct{}

func (r *rGreeter) BindRouter(engine *gin.Engine) {
	v1 := engine.Group("/v1")
	{
		v1.GET("/greeter", controller.Greeter.Hello)
		v1.POST("/greeter_post", controller.Greeter.PostApi)
	}
}
